package com.tang.model.simple;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2022/1/15 16:58
 * @Desc
 * @Remarks
 */
public class CommonFactory {

    public static <T> T factoryCreated(Class<T> clazz) {
        try {
            return clazz.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } finally {
        }
        return null;
    }
}
